# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-sphinxcontrib-doxylink
_pkgname=sphinxcontrib-doxylink
pkgver=1.12.2
pkgrel=2
pkgdesc="Sphinx Doxygen linking extension"
url="https://github.com/sphinx-contrib/doxylink"
arch="noarch"
license="BSD-2-Clause"
depends="
	py3-dateutil
	py3-parsing
	py3-sphinx
	python3
	"
makedepends="
	py3-gpep517
	py3-poetry-core
	"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
options="!check" # no tarball tests

replaces="py-sphinxcontrib-doxylink" # for backwards compatibility
provides="py-sphinxcontrib-doxylink=$pkgver-r$pkgrel" # for backwards compatibility

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
dd07053a7f3c01697fa4c488c1bcd55de7d5cf41cd8a33c64dfcfcc26c5b63b079055626a6617c1afc6350796e30d4db5209364a146f814bd81227afd561614b  sphinxcontrib-doxylink-1.12.2.tar.gz
"
